package com.me.TextMissed_a1;

import com.me.TextMissed_a1.MyService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyStartupIntentReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		

		if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())){
			
			Log.d("OLO", "MyStartupIntentReceiver: "+intent.getAction());
			
			Intent serviceLauncher = new Intent(context, MyService.class);
		     context.startService(serviceLauncher);
		     
		     //Log.d("_TextMissed_a1_", "Service loaded at start");
		  }


	}

}
